package com.sllx.userManage.service.impl;

import java.util.List;

import com.sllx.userManage.dao.UserDao;
import com.sllx.userManage.entity.User;
import com.sllx.userManage.service.UserService;

public class UserServiceImpl implements UserService{
	UserDao userDao;

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	@Override
	public boolean exists(User user) {
		return userDao.exists(user);
	}

	@Override
	public void addUser(User user) {
		userDao.save(user);
	}

	@Override
	public List<User> findUsers() {
		return userDao.findUsers();
	}

	@Override
	public void deleteUser(User user) {
		userDao.deleteUser(user);
	}
	
}
